Java Programming Idioms
نویسنده
چکیده
The programming language Java was introduced to the IT community as an easy-to-learn and easy-to-use language (typically referring to C++ for comparison). While this is certainly true, it turns out that even this supposedly easy language offers a lot of choices and comes with many programming idioms that must be understood thoroughly in order to produce high-quality software implemented in Java. In this tutorial we look into the less obvious limitations of some concepts and discuss some fundamental, yet typical misunderstandings.
منابع مشابه
Greatfree: the Java Apis and Idioms to Program Large-scale Distributed Systems
This paper introduces a series of APIs and idioms in Java SE (Java Standard Edition), GreatFree, to program large-scale distributed systems from scratch without adopting any third party frameworks. When programming with GreatFree, developers are required to take care of rather than be invisible to most of the implementation issues in a distributed system. It not only strengthens developers’ ski...
متن کاملIdentifying Idioms of Source Code Identifier in Java Context
This paper presents an approach to identifying a domain word POS(Part of Speech) and idiom code identifiers written in Java programming language. To detect them, we extracted common identifiers from 14 Java API documents, and applied diverse filters. In addition, NLP (Natural Language Parser) has been used to detect common mistakes in the Java API documents. As a result, this paper identified 8...
متن کاملBest Paper Award at ICST ’13 CHECK-THEN-ACT Misuse of Java Concurrent Collections
Concurrent collections provide thread-safe, highly-scalable operations, and are widely used in practice. However, programmers can misuse these concurrent collections when composing two operations where a check on the collection (such as non-emptiness) precedes an action (such as removing an entry). Unless the whole composition is atomic, the program contains an atomicity violation bug. In this ...
متن کاملIdioms in Ovm
The need to express important non.Java behaviors confronts the Ovm virtual machine framework no less than any other VM-in-Java project such as JikesRVM[1].2 Any such project needs mechanisms for the purpose, but different choices in the VM design affect the shape those mechanisms can take. In exploring how a component that makes nontrivial use of such mechanisms-the JMTk memory management toolk...
متن کاملRubah: Efficient, General-purpose Dynamic Software Updating for Java
This paper presents Rubah, a new dynamic software updating (DSU) system for Java programs that works on stock JVMs. Rubah supports a large range of program changes (e.g., changes to the class hierarchy and updates to running methods), does not restrict important programming idioms (e.g., reflection), and, as shown by performance experiments using an updatable version of the H2 database manageme...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2001